package com.zhijian.medical.entity.vo.request;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import java.io.Serializable;

/**
 * 考核-试卷模块 查询条件vo
 *
 * @author HCG
 * @version 1.0
 * @date 2022-04-02 19:49:36
 */
@Data
@Api(tags = "考核-试卷模块查询条件vo")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ExamPaperSearchVo implements Serializable {

    private static final long serialVersionUID = -1;

    /**
     * 页码
     */
    @ApiModelProperty("页码")
    @Min(value = 1, message = "页码最小为1")
    private Integer pageNum;

    /**
     * 数据库查询参数，前端忽略
     */
    @ApiModelProperty(value = "页码", hidden = true)
    private Integer startIndex;

    /**
     * 条数
     */
    @ApiModelProperty("每页显示的条数")
    @Min(value = 1, message = "每页显示的条数最小为1")
    private Integer pageSize;

    /**
     * 题库id
     */
    @ApiModelProperty("题库id")
    private Long warehouseId;

    /**
     * 人员id
     */
    @ApiModelProperty("人员id")
    private Long userId;

    /**
     * 状态，0：未提交，1：已提交，2：已作废，3：已打分
     */
    @ApiModelProperty("状态，0：未提交，1：已提交，2：已作废，3：已打分")
    private Byte status;

    /**
     * 学习id
     */
    @ApiModelProperty("学习id")
    private Long studyId;
}